// redux提供了一个createstore方法 用来创建一个stort
import thunk from 'redux-thunk'
import {applyMiddleware, combineReducers, createStore} from 'redux'
import countReducer from './reducers/countReducer'
import movieReducer from './reducers/movieReducer'
import { composeWithDevTools } from 'redux-devtools-extension'
// 合并多个reducer
const allReducers = combineReducers({
    count:countReducer,
    movie:movieReducer
})

const store = createStore(allReducers,composeWithDevTools(applyMiddleware(thunk)))

export default store